import base from '@/api/baseurl';
import request from '@/utils/request'

console.log("basebasebasebasebasebase::",base);
export function login(data) {
  return request({
    baseURL:base.userBaseApi,
    url: '/auth/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    baseURL:base.userBaseApi,
    url: '/auth/me',
    method: 'get',
    // params: { token }
  })
}

export function logout() {
  return request({
    baseURL:base.userBaseApi,
    url: '/auth/logout',
    method: 'post'
  })
}
